﻿using Microsoft.VisualStudio.Modeling;
using System;
using System.Collections.Generic;
using System.Text;

namespace Project.Co_DataTransformationPrototype
{
    public class SplitMapping : MappingBase
    {
        Entity sourceEntity;

        public SplitMapping(EventContext eventContext, Entity sourceEntity)
        {
            this.eventContext = eventContext;
            this.sourceEntity = sourceEntity;
            //generateSQLCodeMapping();
        }

        internal override void generateSQLCodeMapping(StringBuilder existingScript = null)
        {
            strSQLMapping = new StringBuilder();
            
            if (existingScript != null)
                strSQLMapping.Append(existingScript);

            setSplitSQLCode();

            strSQLMapping.AppendLine("GO" + Environment.NewLine);
        }

        private void setSplitSQLCode()
        {
            //Entity targetEntity;
            //EntityAttribute attribute;

            //attribute = eventContext.elementEventArgs.ModelElement as EntityAttribute;
            //targetEntity = attribute.Entity;

            throw new NotImplementedException("setSplitSQLCode: scenario -> event logger should call moveOpMapping. Call the monkeys!");
        }
    }
}
